﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using CommunitySystem.Model;
using System.Collections.ObjectModel;

namespace CommunitySystem.Web.Service
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IRightService" in both code and config file together.
    [ServiceContract]
    public interface IRightService
    {
        [OperationContract]
        void DoWork();

        [OperationContract]
        bool UpdatePermission(int OrgID, ObservableCollection<PermissionBase> Permissions);

        [OperationContract]
        ObservableCollection<PermissionBase> GetPermission(string condition);
    }
}
